package com.shenjinzheng.dk.recipe.controller;

import com.shenjinzheng.dk.recipe.entity.Recipe;
import com.shenjinzheng.dk.recipe.service.RecipeService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 菜谱表 前端控制器
 * </p>
 *
 * @author shenjinzheng
 * @since 2025-01-19
 */
@Slf4j
@RestController
@RequestMapping("/recipe")
public class RecipeController {

    @Resource
    private RecipeService recipeService;

    @PostMapping("/add")
    public void addRecipe(@RequestBody Recipe recipe) {
        log.info("recipe:{}", recipe.toString());
//        return recipeService.addRecipe(recipe);
    }

    @GetMapping("/list/{user_id}")
    public void listByUserId(@PathVariable String user_id) {
        log.info("user_id:{}", user_id);

//        return recipeService.addRecipe(recipe);
    }


}
